﻿using Modules.System.AppNotice;
using System.ComponentModel.DataAnnotations;

namespace ManagementApi.Models.System.AppNotice
{
    public class AppNoticeInfoEditForm
    {
        /// <summary>
        /// 类型 1=通知公告 2=升级提示
        ///</summary>
        [Display(Name = "通知类型")]
        [Required(ErrorMessage = "{0}不能为空")]
        public 通知公告类型 NoticeType { get; set; }
        /// <summary>
        /// 标题 
        ///</summary>
        [Display(Name = "公告标题")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Title { get; set; }
        /// <summary>
        /// 内容 
        ///</summary>
        [Display(Name = "公告内容")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string Content { get; set; }

        /// <summary>
        /// 最低版本配置
        /// </summary>
        public string? MinVersion { get; set; }
    }

}
